//
//  MBLoginDataManager.h
//  Meboo
//
//  Created by kyo on 2023/10/8.
//

#import <Foundation/Foundation.h>
#import "NSUserInfoModel.h"
NS_ASSUME_NONNULL_BEGIN

@interface MBLoginDataManager : NSObject
@property (nonatomic, strong) NSUserInfoModel *userInfoModel;
@property (nonatomic, strong) NSDictionary *versionDict;
+ (MBLoginDataManager *)sharedManager;
#pragma mark -登录
- (void)loginWithIdentityTokenStr:(NSString *)identityTokenStr userName:(NSString *)userName email:(NSString *)email success:(void(^)(BOOL success))resultBlock;

#pragma mark -注册
- (void)registerUserInfoSuccess:(void(^)(BOOL success))resultBlock;

#pragma mark -获取协议链接
- (void)getAgreementUrl:(void(^)(BOOL success))resultBlock;

#pragma mark -获取用户信息
- (void)getUserInfoWithCode:(NSString *)userCode success:(void(^)(BOOL success))resultBlock;

#pragma mark -更改个人信息
- (void)changeUserInfoWithKey:(NSString *)key value:(id)value Success:(void(^)(BOOL success))resultBlock;

#pragma mark -获取升级信息信息
- (void)checkVersion:(void(^)(BOOL success))resultBlock;

#pragma mark -获取验证码
- (void)getPhoneCodeWithPhone:(NSString *)phone success:(void(^)(BOOL success))resultBlock;

#pragma mark -验证码登录
- (void)loginWithPhone:(NSString *)phone code:(NSString *)code userID:(NSString *)userID success:(void(^)(BOOL success))resultBlock;


- (void)getAppsFlyersStateWithUid:(NSString *)uid success:(void(^)(BOOL success))resultBlock;

@end

NS_ASSUME_NONNULL_END
